package so.sao.code.service.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import so.sao.code.service.domain.entity.EnterpriseDomain;
import so.sao.code.service.domain.entity.EnterpriseInfo;
import so.sao.code.service.domain.entity.TagBatch;

import java.util.List;

/**
 * Created by Administrator on 2017/10/19.
 */
@Repository
public interface EnterpriseInfoDao extends JpaRepository<EnterpriseInfo, Long> {
    EnterpriseInfo findByEseId(Long eseId);

    Page<EnterpriseInfo> findAll(Specification<EnterpriseInfo> spec, Pageable pageable);

    List<EnterpriseInfo> findByEseIdIn(List<Long> eseIds);
}
